Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-selector-not

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-selector-not

PostCSS plugin to transform :not() W3C CSS level 4 pseudo class to :not() CSS level 3 selectors

  • 3.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.7M
increased by5.12%
Maintainers
3
Weekly downloads
 
Created

What is postcss-selector-not?

The postcss-selector-not package is a PostCSS plugin that transforms :not() pseudo-class selectors to work with older browsers that do not support them. It helps in writing more maintainable and readable CSS by allowing the use of the :not() pseudo-class in a way that is compatible with a wider range of browsers.

What are postcss-selector-not's main functionalities?

Transform :not() pseudo-class

This feature transforms the :not() pseudo-class to a format that is compatible with older browsers. In this example, the CSS rule 'a:not(.foo) { color: red; }' is processed to ensure compatibility.

const postcss = require('postcss');
const selectorNot = require('postcss-selector-not');

const css = 'a:not(.foo) { color: red; }';

postcss([selectorNot]).process(css).then(result => {
  console.log(result.css);
});

Other packages similar to postcss-selector-not

Keywords

FAQs

Package last updated on 15 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc